package edu.berkeley.drivingbuddy;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;

public class Friends extends Activity implements OnClickListener {
    
    TextView hot1;
    TextView hot1Score;
    TextView hot2;
    TextView hot2Score;
    TextView hot3;
    TextView hot3Score;

    TextView not1;
    TextView not1Score;
    TextView not2;
    TextView not2Score;
    TextView not3;
    TextView not3Score;
    
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.friends);
        
        hot1 = (TextView) findViewById(R.id.label_friends_hot1);
        hot1Score = (TextView) findViewById(R.id.label_friends_hot1_score);
        hot2 = (TextView) findViewById(R.id.label_friends_hot2);
        hot2Score = (TextView) findViewById(R.id.label_friends_hot2_score);
        hot3 = (TextView) findViewById(R.id.label_friends_hot3);
        hot3Score = (TextView) findViewById(R.id.label_friends_hot3_score);
        
//        hot1.setOnClickListener(this);
//        hot1Score.setOnClickListener(this);
//        hot2.setOnClickListener(this);
//        hot2Score.setOnClickListener(this);
//        hot3.setOnClickListener(this);
//        hot3Score.setOnClickListener(this);

        not1 = (TextView) findViewById(R.id.label_friends_not1);
        not1Score = (TextView) findViewById(R.id.label_friends_not1_score);
        not2 = (TextView) findViewById(R.id.label_friends_not2);
        not2Score = (TextView) findViewById(R.id.label_friends_not2_score);
        not3 = (TextView) findViewById(R.id.label_friends_not3);
        not3Score = (TextView) findViewById(R.id.label_friends_not3_score);
        
//        not1.setOnClickListener(this);
//        not1Score.setOnClickListener(this);
//        not2.setOnClickListener(this);
//        not2Score.setOnClickListener(this);
//        not3.setOnClickListener(this);
//        not3Score.setOnClickListener(this);
        
        hot1.setText("Aaron Eidelson - Going to school");
		hot1Score.setText("94");

        hot2.setText("Michael Treger - Driving to the mall");
		hot2Score.setText("70");

        hot3.setText("Kate Feeney - Road trip to yosemite");
		hot3Score.setText("67");

        not1.setText("Aaron Eidelson - Driving little sister to preschool");
		not1Score.setText("23");

        not2.setText("Calvin Hu - Weekend trip to Palo");
		not2Score.setText("42");

        not3.setText("Aaron Eidelson - Practice for driving test");
		not3Score.setText("47");
        
    }
    
    public void onClick (View v) {
//        switch (v.getId()) {
//            case R.id.label_friends_hot1:
//                startActivity(new Intent(this, Result.class)); 
//                break;
//            case R.id.label_friends_hot2:
//                startActivity(new Intent(this, Result.class)); 
//                break;
//            case R.id.label_friends_hot3:
//                startActivity(new Intent(this, Result.class)); 
//                break;
//            case R.id.label_friends_not1:
//                startActivity(new Intent(this, Result.class)); 
//                break;
//            case R.id.label_friends_not2:
//                startActivity(new Intent(this, Result.class)); 
//                break;
//            case R.id.label_friends_not3:
//                startActivity(new Intent(this, Result.class)); 
//                break;
//            case R.id.label_friends_hot1_score:
//                startActivity(new Intent(this, Result.class)); 
//                break;
//            case R.id.label_friends_hot2_score:
//                startActivity(new Intent(this, Result.class)); 
//                break;
//            case R.id.label_friends_hot3_score:
//                startActivity(new Intent(this, Result.class)); 
//                break;
//            case R.id.label_friends_not1_score:
//                startActivity(new Intent(this, Result.class)); 
//                break;
//            case R.id.label_friends_not2_score:
//                startActivity(new Intent(this, Result.class)); 
//                break;
//            case R.id.label_friends_not3_score:
//                startActivity(new Intent(this, Result.class)); 
//                break;
//
//        }
    }
}
